package com.groupbuying.currency.consumer.connector;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @anthor zmlmagic
 * @date 2019/1/10 5:45 PM
 * @company 蒙泰互联网公司
 * @des 用户中心接口连接器
 **/

@Service
@FeignClient(name = "bus-customer")
public interface CustomerFeign {
    @GetMapping("/customerWxinInfo/getOpenidByCustomerId")
    String getOpenidByCustomerId(@RequestParam("customerId") String customerId);

    //发送短信
    @GetMapping("/sms/sendSmsWithCustomerId")
    void sendSmsWithCustomerId(@RequestParam("customerId") String customerId,@RequestParam("msg") String msg);

    //通过customerId获取用户支付宝alipayUserId
    @GetMapping("/CustomerAliinfo/getAliUserIdByCustomerId")
    String getAliUserIdByCustomerId(@RequestParam("customerId") String customerId);
}
